package com.hopes.bizz.protocol.hj212.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author daijie
 * @version 1.0
 * @date 2023/6/8 10:15
 * @Description:
 */
@Data
@TableName(value ="protocol_hj212_packet_log")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "hj212协议接收报文日志")
public class ProtocolHj212PacketLogEntity extends Model<ProtocolHj212PacketLogEntity> {

    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="id")
    private Long id;

    @Schema(description="原始报文")
    private String original;

    @Schema(description="接收时间")
    private Date receiveTime;

    @Schema(description="数据解析结果")
    private Boolean handlerResult;

    @Schema(description="数据解析详情")
    private String handlerDetail;

    @Schema(description="处理后报文")
    private String handlerData;

    @Schema(description="处理耗时（毫秒）")
    private Integer handlerTime;
}